﻿using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using Sharp.Domain.PlatformBoundedContext.StoragerModule.Aggregates; 

namespace Sharp.Domain.PlatformBoundedContext.ModelConfigurations
{
    public partial class FileStoreConfiguration
        : EntityTypeConfiguration<FileStore>
    {
        public FileStoreConfiguration()
        {
            HasKey(x => x.Id);

            Property(t => t.Id)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity)
                .IsRequired();


            Property(t => t.FileString)
                .IsMaxLength().IsRequired(); 
        }
    }
}

